package com.maozzi.website.web.feign;

import com.maozzi.common.model.ResultVO;
import com.maozzi.website.web.feign.hystrix.UserServiceHystrix;
import com.maozzi.website.web.model.AclUserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * open feign 调用
 *
 * @author maozi
 */
@FeignClient(name = "passport", fallback = UserServiceHystrix.class)
public interface UserService {
    @GetMapping("openapi/acl/getAclUser")
    ResultVO<AclUserVO> getAclUser(@RequestParam("userId") Long userId);
}
